﻿using Sx.Mall.WebContract.Dto;
using Mall.Infrastructure.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sx.Mall.WebContract
{
    public interface IProductBigtypeService
    {
        /// <summary>
        /// 添加产品大分类
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        CommonResult Add(ProductBigtypeDto dto);

        /// <summary>
        /// 修改产品大分类
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        CommonResult Update(ProductBigtypeDto dto);

        /// <summary>
        /// 删除产品大分类
        /// </summary>
        /// <param name="option"></param>
        /// <returns></returns>
        CommonResult DeleteUser(CommonOperate<List<int>> option);

        /// <summary>
        /// 查询产品大分类
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        PageResult<ProductBigtypeDto> GetList(ProductBigtypeDto dto);
    }
}
